home *** CD-ROM | disk | FTP | other *** search
/ bioinformatics.org / bioinformatics.org_software.tar / www.bioinformatics.org / download / ecell2 / ecell220setup.exe / {app} / standard / STDR / CatalyzedMassActionReactor.rd next >
Text File  |  2000-03-03  |  1KB  |  49 lines

  1. @CLASSNAME: CatalyzedMassActionReactor
  2.  
  3. @BASECLASS: FluxReactor
  4. @AUTHOR: Kouichi Takahashi
  5. @EMAIL: shafi@sfc.keio.ac.jp
  6. @DATE: 29/6/1999
  7.  
  8. %VERSION: ecs-v09, 0.1
  9.  
  10. @BRIEF_DESCRIPTION: Reaction rate directrly depends on the
  11. concentrations of the catalyst and substances 
  12.  
  13. @DESCRIPTION: A reactor class in which general mass action equation is
  14. embeded.  A 'catalyst' is defined as a molecular species that does not
  15. change itself but affects reaction rate following
  16. general mass action low.
  17.  
  18. Velocity is calculated as a product of the catalyst
  19. and substrates concentration, and a kinetic constant (see Equation).
  20.  
  21. @EQUATION:$$v=k \prod_{i=0}^n [S_i]^{c_i}$$
  22.  
  23. %SUBSTANCE:Substrate, Inf, 1
  24. %SUBSTANCE:Product, Inf, 1
  25. %SUBSTANCE:Catalyst, 1, 1
  26.  
  27. %PARAMETER: k, Float, ,  Velocity Constant
  28.  
  29. @REACT_FUNC:
  30.   Float velocity = k*N_A;
  31.   velocity *= _substrateList[0]->substance().supersystem()->volume();
  32.   velocity *= catalyst(0)->quantity();
  33.  
  34.   int i = numSubstrate();
  35.   do{
  36.     --i;
  37.     // calculate velocity
  38.     int j = substrate(i)->coefficient();
  39.     do{
  40.       j--;
  41.       velocity *= substrate(i)->concentration();
  42.       } while(j != 0);
  43.   } while(i != 0);
  44.  
  45.  
  46.   // now we have change in number of molecules per second
  47.  
  48.   process(velocity);
  49.